
const moduleMenu = {
  state: {
    height: 1000
  },
  getters: {
    getWindowsHeight: state => {
      return state.height
    }
  },
  mutations: {
    change (state, body){
      state.height = body.height
    }
  },
  actions: {
    changeHeight ({ commit }, height){
      commit({
        type: 'change',
        height
      })
    }
  }
}

export default moduleMenu